package com.bt.table.ppt;

/**
 * Bis_m_labelId entity. @author MyEclipse Persistence Tools
 */

public class Bis_m_labelId implements java.io.Serializable {

	// Fields

	private String tool_id_fk;
	private String rep_unit;
	private String data_pat;
	private String mes_id_fk;

	// Constructors

	/** default constructor */
	public Bis_m_labelId() {
	}

	/** full constructor */
	public Bis_m_labelId(String tool_id_fk, String rep_unit, String data_pat,
			String mes_id_fk) {
		this.tool_id_fk = tool_id_fk;
		this.rep_unit = rep_unit;
		this.data_pat = data_pat;
		this.mes_id_fk = mes_id_fk;
	}

	// Property accessors

	public String getTool_id_fk() {
		return this.tool_id_fk;
	}

	public void setTool_id_fk(String tool_id_fk) {
		this.tool_id_fk = tool_id_fk;
	}

	public String getRep_unit() {
		return this.rep_unit;
	}

	public void setRep_unit(String rep_unit) {
		this.rep_unit = rep_unit;
	}

	public String getData_pat() {
		return this.data_pat;
	}

	public void setData_pat(String data_pat) {
		this.data_pat = data_pat;
	}

	public String getMes_id_fk() {
		return this.mes_id_fk;
	}

	public void setMes_id_fk(String mes_id_fk) {
		this.mes_id_fk = mes_id_fk;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bis_m_labelId))
			return false;
		Bis_m_labelId castOther = (Bis_m_labelId) other;

		return ((this.getTool_id_fk() == castOther.getTool_id_fk()) || (this
				.getTool_id_fk() != null && castOther.getTool_id_fk() != null && this
				.getTool_id_fk().equals(castOther.getTool_id_fk())))
				&& ((this.getRep_unit() == castOther.getRep_unit()) || (this
						.getRep_unit() != null
						&& castOther.getRep_unit() != null && this
						.getRep_unit().equals(castOther.getRep_unit())))
				&& ((this.getData_pat() == castOther.getData_pat()) || (this
						.getData_pat() != null
						&& castOther.getData_pat() != null && this
						.getData_pat().equals(castOther.getData_pat())))
				&& ((this.getMes_id_fk() == castOther.getMes_id_fk()) || (this
						.getMes_id_fk() != null
						&& castOther.getMes_id_fk() != null && this
						.getMes_id_fk().equals(castOther.getMes_id_fk())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTool_id_fk() == null ? 0 : this.getTool_id_fk()
						.hashCode());
		result = 37 * result
				+ (getRep_unit() == null ? 0 : this.getRep_unit().hashCode());
		result = 37 * result
				+ (getData_pat() == null ? 0 : this.getData_pat().hashCode());
		result = 37 * result
				+ (getMes_id_fk() == null ? 0 : this.getMes_id_fk().hashCode());
		return result;
	}

	@Override
	public String toString() {
		return "Bis_m_labelId [tool_id_fk=" + tool_id_fk + ", rep_unit="
				+ rep_unit + ", data_pat=" + data_pat + ", mes_id_fk="
				+ mes_id_fk + "]";
	}

}